<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      xmlns:data="http://www.thymeleaf.org/data"
      layout:decorator="layout">
<head>
    <meta charset="UTF-8">
    <title></title>
    <script>
        function myFunction()
        {
            alert("Hello World!");
        }
    </script>
</head>
<body>
    <form th:action="@{/login}" method="post">
        用 户 名：<input type="text" name="username"/>
        密    码：<input type="password" name="password"/>
        <input type="submit" value="登录"/>
    </form>
    <button onclick="myFunction()">注册</button>
    <a th:href="@{/register}">注册</a>
</body>
</html>